"""
	util.py 工具文件.里面放工具
		1.读文件函数
		2.写文件函数
"""

# 固定下文件的路径
userinfo_path = r"data\userinfo.txt"

def write_userinfo(userinfo):
    with open(file = userinfo_path,mode="a+",encoding="utf-8") as file:
        file.write(userinfo)
    
    
def read_userinfo():
    with open(file = userinfo_path,mode="r",encoding="utf-8") as file:
        user_list = file.readlines()
    return user_list